btn.onclick = function () {

    if (isPassword && isUsername) {
        let username4 = username.value
        let password4 = password.value
        let params = {
            username:username4,
            password:password4
        }
        let zhuceAPI = "http://jx.xuzhixiang.top/ap/api/reg.php"
        axios.get(zhuceAPI, {
            params
        }).then((res) => {
            console.log(res.data.code);
            if (res.data.code.value == 1) {
                  alert(res.data.msg);
                bai.style.display = "block";
                gx.style.display = "none";
            }
            else{
               alert(res.data.msg);
            }
        })
    }
}
